<?php
/**
 * storage interface
 */
namespace ulue\core\interfaces;

interface InterfaceStorage
{
  # 不覆盖已存在内容
  public function add($key, $value, $expire = null);

  # 覆盖已存在内容
  public function set($key, $value, $expire = null);

  public function get($key, $default=null);

  public function exists($key);

  public function delete($key);

  public function clear();

  public function close();

}